import service from './http';


// 封装GET请求
export function get(url, params) {
  return service({
    url,
    method: 'get',
    params
  });
}


// 封装POST请求
export function post(url, data) {
  return service({
    url,
    method: 'post',
    data
  });
}


// 封装其他请求方法如PUT、DELETE等
export function put(url, data) {
  return service({
    url,
    method: 'put',
    data
  });
}


export function del(url) {
  return service({
    url,
    method: 'delete'
  });


}
